﻿<UserControl x:Class="Skynet.C2SModule.Views.CreateBook.CreateBookView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
             mc:Ignorable="d"              
             d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded" Height="400" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Title" Grid.Column="0" Grid.Row="0"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Page Numbers" Grid.Column="0" Grid.Row="1"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Price" Grid.Column="0" Grid.Row="2"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Publication Date" Grid.Column="0" Grid.Row="3"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Isbn" Grid.Column="0" Grid.Row="4"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Summary" Grid.Column="0" Grid.Row="5"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Author" Grid.Column="0" Grid.Row="6"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Publisher" Grid.Column="0" Grid.Row="7"></TextBlock>
        <TextBlock Style="{StaticResource TextBlockStyle}" Text="Subject" Grid.Column="0" Grid.Row="8"></TextBlock>

        <TextBox Style="{StaticResource TextBoxStyle}" Grid.Column="1"  Grid.Row="0" Text="{Binding WorkerBook.Title}"></TextBox>
        <TextBox Style="{StaticResource TextBoxStyle}" Grid.Column="1"  Grid.Row="1" Text="{Binding WorkerBook.PageCount}"></TextBox>
        <TextBox Style="{StaticResource TextBoxStyle}" Grid.Column="1"  Grid.Row="2" Text="{Binding WorkerBook.Price}"></TextBox>
        <toolkit:DatePicker Style="{StaticResource DatePickerStyle}" Grid.Column="1" Grid.Row="3" SelectedDate="{Binding WorkerBook.PublicationDate}"  ></toolkit:DatePicker>
        <TextBox Style="{StaticResource TextBoxStyle}" Grid.Column="1"  Grid.Row="4" Text="{Binding WorkerBook.Isbn}"></TextBox>
        <TextBox Style="{StaticResource TextBoxStyle}" Grid.Column="1"  Grid.Row="5" Text="{Binding WorkerBook.Summary}" Height="100" Width="200"></TextBox>
        <ComboBox Style="{StaticResource ComboBoxStyle}" Grid.Column="1" Grid.Row="6" ItemsSource="{Binding Authors}" ItemTemplate="{StaticResource ComboAuthorTemplate}" IsSynchronizedWithCurrentItem="True"></ComboBox>
        <ComboBox Style="{StaticResource ComboBoxStyle}" Grid.Column="1" Grid.Row="7" ItemsSource="{Binding Publishers}" ItemTemplate="{StaticResource ComboPublisherTemplate}" IsSynchronizedWithCurrentItem="True"></ComboBox>
        <ComboBox Style="{StaticResource ComboBoxStyle}" Grid.Column="1" Grid.Row="8" ItemsSource="{Binding Subjects}" ItemTemplate="{StaticResource ComboSubjectTemplate}" IsSynchronizedWithCurrentItem="True"></ComboBox>               
        <Button  Style="{StaticResource ButtonStyle}" Content="Save" Grid.Column="0" Grid.Row="10"  Name="btnSave" Click="btnSave_Click"></Button>
        <Button  Style="{StaticResource ButtonStyle}" Content="Close" Grid.Column="1" Grid.Row="10" Name="btnClose" Click="btnClose_Click"></Button>              
    </Grid>
</UserControl>
